/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.examination.barbecue.user.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 理论考试用户记录表Entity
 * @author zpp
 * @version 2020-03-07
 */
@Table(name="t_examination_barbecue_user", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="theory_id", attrName="theoryId", label="理论记录标识"),
		@Column(name="user_id", attrName="userId", label="用户id"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="type", attrName="type", label="状态0=未开始1=进行中2=完成，3考试不通过"),
		@Column(name="score", attrName="score", label="分数"),
		@Column(name="post_id", attrName="postId", label="区分答题人的岗位"),
	}, orderBy="a.update_date DESC"
)
public class TexaminationBarbecueUser extends DataEntity<TexaminationBarbecueUser> {
	
	private static final long serialVersionUID = 1L;
	private String theoryId;		// 理论记录标识
	private String userId;		// 用户id
	private Integer type;		// 状态0=未开始1=进行中2=完成，3考试不通过
	private Double score;		// 分数
	private String postId;		// 区分答题人的岗位
	private String theoryName;
	private String userName;
	private String postName;
	
	public String getTheoryName() {
		return theoryName;
	}

	public void setTheoryName(String theoryName) {
		this.theoryName = theoryName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPostName() {
		return postName;
	}

	public void setPostName(String postName) {
		this.postName = postName;
	}

	public TexaminationBarbecueUser() {
		this(null);
	}

	public TexaminationBarbecueUser(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="理论记录标识长度不能超过 50 个字符")
	public String getTheoryId() {
		return theoryId;
	}

	public void setTheoryId(String theoryId) {
		this.theoryId = theoryId;
	}
	
	@Length(min=0, max=50, message="用户id长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}
	
	@Length(min=0, max=50, message="区分答题人的岗位长度不能超过 50 个字符")
	public String getPostId() {
		return postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}
	
}